package com.wzw.expression.expression.parser;

import com.wzw.expression.expression.operation.Operation;

import java.lang.reflect.Method;
import java.util.Collection;

/**
 * 解析支持SPEL表达式的注解
 *
 * @author Wangzhiwen
 */
public interface AnnotationParser {

    default boolean isCandidateClass(Class<?> targetClass) {
        return true;
    }

    Collection<Operation> parseAnnotations(Class<?> type);

    Collection<Operation> parseAnnotations(Method method);

}
